package com.fzkjjt.nacos.api;

import com.fzkjjt.constant.FeignConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @program: optms-nacos
 * @description:
 * @author: FangZhen
 * @create: 2020-08-12 14:28
 **/
@FeignClient(value = FeignConstants.NACOS_PROVIDER)
public interface DiscoveryApi {

    @GetMapping("/discovery/get")
    String get(@RequestParam("serviceName") String serviceName);

    @GetMapping("/discovery/echo")
    String echo(String name);
}
